<template>
  <div>
    <div class="nav">
      <i class="iconfont" @click="clickBack">&#xe681;</i>
      <h1>{{ title }}</h1>
    </div>
  </div>
</template>

<script>
export default {
  name:"TopNav2",
  data() {
    return {
      
    }
  },
  props:{
    title:{
      type:String,
      required:true
    }
  },
  methods: {
    clickBack: function(event){
      window.history.back();
    }
  },
}
</script>

<style scoped>
.nav{
  width: 100%;
  height: 152px;
  background-color: #ff406f;
  z-index: 1;
  display: flex;
  padding: 30px 10px;
  box-sizing: border-box;
  
}
.iconfont{
  font-size: 22px;
  color: #fff;
  font-weight: 100;
}
h1{
  font-size: 18px;
  color: #fff;
  font-weight: 100;
  width: 86%;
  text-align: center;
}

</style>
